package br.trainee.web.controller;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import javax.annotation.PostConstruct;
import javax.enterprise.context.SessionScoped;
import javax.faces.model.SelectItem;
import javax.inject.Named;

@Named("temas")
@SessionScoped
public class TemasBean implements Serializable{

	
	private static final long serialVersionUID = 1L;
	
	private List<SelectItem> listaTemas;
	private String tema;
	
	@PostConstruct
	public void inicializar(){
		
		listaTemas = new ArrayList<SelectItem>();
		
		listaTemas.add(new SelectItem("black-tie","Black-Tie"));
		listaTemas.add(new SelectItem("dot-luv","Dot-Luv"));
		listaTemas.add(new SelectItem("rocket","Rocket"));
		listaTemas.add(new SelectItem("afterdark","Afterdark"));
		
		this.tema="dot-luv";
		
	}

	public List<SelectItem> getListaTemas() {
		return listaTemas;
	}

	public void setListaTemas(List<SelectItem> listaTemas) {
		this.listaTemas = listaTemas;
	}

	public String getTema() {
		return tema;
	}

	public void setTema(String tema) {
		this.tema = tema;
	}
	
	
	

}
